// EcoModeler - C# Edition :: Version 9.17 build 3378
using System;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using Eco.Services;
using Eco.ObjectRepresentation;
using Eco.ObjectImplementation;
using Eco.UmlRt;
using Eco.UmlCodeAttributes;
using Eco.Subscription;

namespace VisualDM.Model
{
	#region MM_ECO_Generated
	#region Attributes
	[UmlElement(Id="{5365ffb9-6c60-4d6c-8c53-769fdb1f89b8}")]
	#endregion

	#endregion
	public class MaterialResource: Resource
	{
		#region MM_ECO AutoGenerated ECO code

		new public struct Eco_LoopbackIndices
		{
			public const int Eco_FirstMember = VisualDM.Model.Resource.Eco_LoopbackIndices.Eco_MemberCount;
			public const int Eco_MemberCount = (Eco_FirstMember + 1);
			public const int Name_MemberIndex = Eco_FirstMember + 0;
		}
		#endregion

		#region MM_ECO Model owned attributes
		//Note: Do not remove any property within this region, nor change its signature


		#region MM_ECO_Generated
		#region Attributes
		[UmlElement(Index=(MaterialResource.Eco_LoopbackIndices.Name_MemberIndex), Id="{1ecb5552-db59-448f-a74f-bea1edd9f323}")]
		[UmlTaggedValue("Eco.Length", "255")]
		#endregion

		#endregion
		public string Name
		{
			get
			{
				#region MM_ECO_Generated
				return (string) (this.eco_Content.get_MemberByIndex(Eco_LoopbackIndices.Name_MemberIndex));
				#endregion
			}
			set
			{
				#region MM_ECO_Generated
				this.eco_Content.set_MemberByIndex(Eco_LoopbackIndices.Name_MemberIndex, ((object)(value)));
				#endregion
			}
		}
		#endregion

		#region MM_ECO Model owned methods
		//Note: Do not remove any method within this region, nor change its signature

		public MaterialResource(IContent content) : base(content)
		{
			#region MM_ECO_Generated
			#endregion
		}

		public MaterialResource(IEcoServiceProvider serviceProvider) : base(serviceProvider)
		{
			try
			{
				// Place user code ONLY here
			}
			catch (System.Exception)
			{
				this.Deinitialize(serviceProvider);
				throw;
			}
		}
		#endregion
	}
}
